const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    proxy: {
      "/api": {
        target: "http://192.168.101.2:8081",
        changeOrigin: true,
        pathRewrite: { "^/api": "" },
      },
    },
    client: {
      overlay: false, // 编译错误时，取消全屏覆盖（建议关掉）
    },
  },
});
